let baseUrl, version; //请求域名
// 微信平台
// #ifdef MP-WEIXIN
let accountInfo = wx.getAccountInfoSync();
version = accountInfo.miniProgram.envVersion
switch (version) {
	case 'develop': //开发版
		baseUrl = 'https://app.shou-kuanbao.com'; // 宁
		break;
	case 'trial': //体验
		baseUrl = 'https://app.shou-kuanbao.com';
		break;
	case 'release': //正式版
		baseUrl = 'https://app.shou-kuanbao.com';
		break;
	default: //默认
		baseUrl = 'https://app.shou-kuanbao.com';
		break;
}
// #endif
// 除了微信平台 https://app.shou-kuanbao.com/prod-api //seeklife http://192.168.16.50:9104
// #ifndef MP-WEIXIN && H5 
baseUrl = process.env.NODE_ENV == 'development' ? 'https://app.shou-kuanbao.com/prod-api' :
	'https://app.shou-kuanbao.com/prod-api' 
// #endif
// h5
// #ifdef H5
baseUrl = process.env.NODE_ENV == 'development' ? '/prod-api' : '/prod-api'
// #endif
console.log('请求域名:', baseUrl)
let origin = 'https://app.shou-kuanbao.com'

// RSA公钥：
let pubKey =
	'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLfFol6DqlWAtXwsy+sBJzXZZtARMhVDzrwsRMm7Gj+1oIuwK/uoJo++mZP+J0muY5B9OKpyZmY3F5BATxwtUMWmuQRNHSSYZdjYO3E9KL+iks5ZL8e7XKhIuCGVAxhMuDSChNLgOTfyxvw2j3ebbSpVf+X7lbWyjQrDWUJiFc+wIDAQAB'
// RSA私钥
let privKey =
	'MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIt8WiXoOqVYC1fCzL6wEnNdlm0BEyFUPOvCxEybsaP7Wgi7Ar+6gmj76Zk/4nSa5jkH04qnJmZjcXkEBPHC1Qxaa5BE0dJJhl2Ng7cT0ov6KSzlkvx7tcqEi4IZUDGEy4NIKE0uA5N/LG/DaPd5ttKlV/5fuVtbKNCsNZQmIVz7AgMBAAECgYB89+Bcbf98+7DN4/1EKsOdEJAhAQF+rtYV892jNSqmXB+CCuqflB4aqPfVEWN2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